package 面向对向.继承;

public class dom02 extends dom01{
    private String name = "hh";
    public dom02(){

//        super();//隐藏的super()用于调用父类的构造器
        this(11);
        System.out.println("构造器子类");

    }
    public dom02(int a){

        System.out.println(a);
    }
    public void cf(String name){
        System.out.println(name);
        System.out.println(this.name);
//        System.out.println(super.name);super不能调用私有属性和方法
        System.out.println(super.getName());
    }
    public void ss(){
        System.out.println("子类");
    }





}
